import axios from 'axios'
//获取商铺详情
export const getrestaurant=(id)=>axios.get('https://elm.cangdu.org/shopping/restaurant/'+id)
//获取商铺的商品列表
export const getgoodlist=(id)=>axios.get('https://elm.cangdu.org/shopping/v2/menu?restaurant_id='+id)

//获取评价星级 需要传入参数restaurant_id,目前没有暂时传入固定id
export const evaluateStar = (id) => axios.get('https://elm.cangdu.org/ugc/v2/restaurants/'+id+'/ratings/scores')

//获取评价分类 需要传入参数restaurant_id,目前没有暂时传入固定id
export const evaluateClassification = (id) => axios.get('https://elm.cangdu.org/ugc/v2/restaurants/'+id+'/ratings/tags')

//获取评价信息 需要传入参数restaurant_id,目前没有暂时传入固定id
export const evaluateInformation = (id) => axios.get('https://elm.cangdu.org/ugc/v2/restaurants/'+id+'/ratings?offset=0&limit=10')